package com.rent.message.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("conversation")
public class Conversation implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user1_id")
    private Long user1Id;

    @TableField("user2_id")
    private Long user2Id;

    @TableField("last_message_id")
    private Long lastMessageId;

    @TableField("last_message")
    private String lastMessage;

    @TableField("last_message_picture")
    private String picture;

    @TableField("user1_unread_count")
    private Integer user1unreadCount;

    @TableField("user2_unread_count")
    private Integer user2unreadCount;

    @TableField("last_time")
    private Date lastMessageTime;



}
